package pt.ua.helpdesk.client;

import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.Widget;

public class FaqAdmOnClick implements ClickListener {
	
	private Integer idFaq;
	private Integer op;
	
	/**
	 * Class constructor
	 * @param id Ticket id
	 */
	public FaqAdmOnClick(Integer id, Integer op)
	{
		this.idFaq = id;
		this.op = op;
	}
	
	/**
	 * Click listener. Loads the composite used
	 * to view a ticket
	 */
	public void onClick(Widget sender) 
	{
		Default.loadComposite(new FaqAdm(idFaq.intValue(), op.intValue()));
	}
}
